/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-03-28     12804       the first version
 */
#ifndef APPLICATIONS_FLASH_H_
#define APPLICATIONS_FLASH_H_

#define  DATA_ADDRESS_START     0x80000
#define  DATA_ADDRESS_END       0x100000

#define  SECTOR_SIZE            4096


void FlashWrite(uint32_t addr, const uint8_t *data, size_t len);
void FlashRead(uint32_t addr, uint8_t *data, size_t len);
void FlashErase(uint32_t addr, size_t len);

#endif /* APPLICATIONS_FLASH_H_ */
